package com.javasee.rain.stock;

import lombok.Data;

/**
 * Project Name: rain-stock
 * Package Name: com.javasee.rain.stock
 * Description :
 *
 * @author : xinyanfei
 * @date : 2025/10/9 00:10
 * Copyright (c) 2025, 京东商城  All Rights Reserved.
 */
@Data
public class Result {

    private static Result result = new Result();

    private String state;

    private Object data;

    public static final String success = "success";
    static final String fail = "fail";

    Result() {
        this.state = Result.success;
        this.data = null;
    }

    public static Result builder() {
        return result;
    }

    public Result setState(String state) {
        this.state = state;
        return this;
    }

    public Result build(Object data) {
        this.data = data;
        return this;
    }
}
